<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('客户管理')"></head>
<body class="easyui-layout">
<div style="width: 100%" data-options="region:'west',split:true,border:true,title:'客户树'">
    <div style="margin-left: 50px;">
        <input id="ss" class="easyui-searchbox" style="width:200px"
               data-options="prompt:'搜 索'"/>
        <shiro:hasPermission name="reportworld:customer:base64">
            <a class="easyui-linkbutton" iconCls='icon-print' onclick="customerBase64();">导出许可</a>
        </shiro:hasPermission>
        <ul id="treeContent" class="easyui-tree"></ul>
        <div id="nav" class="easyui-menu" style="width:120px;">
            <shiro:hasPermission name="reportworld:customer:add">
                <div id="2" data-options="iconCls:'icon-add'">添加</div>
            </shiro:hasPermission>
            <shiro:hasPermission name="reportworld:customer:edit">
                <div id="3" data-options="iconCls:'icon-edit'">修改</div>
            </shiro:hasPermission>
            <shiro:hasPermission name="reportworld:customer:del">
                <div id="4" data-options="iconCls:'icon-cancel'">移除</div>
            </shiro:hasPermission>
            <shiro:hasPermission name="reportworld:customer:query">
                <div id="5" data-options="iconCls:'icon-redo'">查看表</div>
            </shiro:hasPermission>
            <shiro:hasPermission name="reportworld:customer:manmger">
                <div id="6" data-options="iconCls:'icon-undo'">客户管理</div>
            </shiro:hasPermission>
        </div>
    </div>
</div>
<div id="dlg" class="easyui-dialog" style="width:650px;height:400px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form method="post" id="myform">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <input type="hidden" name="id">
                <tr>
                    <td align="right">客户名称：</td>
                    <td><input name="name" class="easyui-validatebox" data-options="required:true"
                               missingMessage="请输入客户名称">
                    </td>
                </tr>
                <tr>
                    <td align="right">上级客户：</td>
                    <td colspan="3">
                        <input id="parentId" name="parentId" style="width: 350px"
                               data-options="required:true,prompt:'==请选择==',panelHeight:'auto'" class="easyui-combotree"
                               missingMessage="请选择上级客户" validType="comtreeValidate['parentId','请选择上级客户']"/></td>
                </tr>
                <tr>
                    <td align="right">客户说明：</td>
                    <td colspan="3">
                        <input class="easyui-textbox" name="description"
                               data-options="multiline:true" style="height:80px;width:350px"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>


<div id="dlgTableInfo" class="easyui-dialog" style="width:1000px;height:500px"
     closed="true" modal="true" maximizable="true" resizable="true" buttons="#dlg-buttonsTableInfo">
    <form method="post" id="tabfrom1">
        <br>
        <table class="form-table">
            <tr>
                <td width="10%" align="right">表名：</td>
                <td align="left">
                    <input id="tableName" style="width:150px"/>
                </td>
                <td width="10%" align="right">中文名称：</td>
                <td align="left">
                    <input id="chineseName" style="width:150px"/>
                </td>
                <td width="10%" align="right">版本号：</td>
                <td>
                    <input style="width:150px" id="selVersion"
                           data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                    <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearchTableInfo();">查询</a>
                </td>
            </tr>
        </table>
    </form>
    <div id="dgTableInfo"></div>
</div>


<div id="dlgTableDetail" class="easyui-dialog" style="width:1200px;height:510px"
     closed="true" modal="true" maximizable="true" resizable="true" buttons="#dlg-buttonsTableDetailInfo">
    <form method="post" id="tabfrom2">
        <br>
        <table class="form-table">
            <tr>
                <td width="10%" align="right">字段名称：</td>
                <td align="left">
                    <input id="selColumnName" style="width:150px"/>
                </td>
                <td width="10%" align="right">中文名称：</td>
                <td align="left">
                    <input id="selColumnChineseName" style="width:150px"/>
                </td>
                <td width="10%" align="right">字段描述：</td>
                <td align="left">
                    <input id="selColumnDescribe" style="width:150px"/>
                </td>
                <td width="10%" align="right">版本号：</td>
                <td>
                    <input style="width:150px" id="selColumnVersion"
                           data-options="valueField:'value',textField:'showmsg' ,panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                    <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearchDetail();">查询</a>
                </td>
            </tr>
        </table>
    </form>
    <div id="dgTableDetail"></div>
</div>

<div id="dlgDataSql" class="easyui-dialog" style="width:900px;height:400px"
     closed="true" modal="true" maximizable="true" resizable="true" buttons="#dlg-buttonsTableDetailInfo">
    <div id="dgDataSql"></div>
</div>

<!--客户选择使用的报表和模块生成lic文件-->
<div id="dlgCustomerManger" class="easyui-dialog" style="width:600px;height:400px"
     closed="true" modal="true" maximizable="true" resizable="true">
    <form method="post" id="myformCustomer">
        <table class="form-table" style="margin-top: 20px;margin-left: 10px">
            <tr>
                <td align="right">所属模块：</td>
                <td>
                    <input id="strModular" name="strModular" style="width: 350px" multiple="multiple"
                           cascadeCheck="true"
                           data-options="required:true,prompt:'==请选择==',panelHeight:'auto'"
                           class="easyui-combotree"
                           missingMessage="请选择所属模块" validType="comtreeValidate['strModular','请选择所属模块']"/>
                </td>
            </tr>
            <tr>
                <td></td>
            </tr>
            <tr>
                <td></td>
            </tr>
            <tr>
                <td align="right">所属报表：</td>
                <td>
                    <input id="strReport" name="strReport" style="width: 350px" multiple="multiple"
                           cascadeCheck="true"
                           data-options="prompt:'==请选择==',panelHeight:'auto'"
                           class="easyui-combotree"
                           missingMessage="请选择所属报表" validType="comtreeValidate['strReport','请选择所属报表']"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/reportworld/customer.js}"></script>
</body>
</html>
